TAGs: Length calculation formula